﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SeqDefenseCopyBuyItemsMsg extends IMessageBase
    {
        public var buyItems:Array;
        public const _type:int = 5019;
        public static var _regist:SeqDefenseCopyBuyItemsMsg = new SeqDefenseCopyBuyItemsMsg(true);

        public function SeqDefenseCopyBuyItemsMsg(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SeqDefenseCopyBuyItemsMsg();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            SeqSDefenseCopyBuyItemHelper.write(param1, this.buyItems);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.buyItems = SeqSDefenseCopyBuyItemHelper.read(param1);
            return;
        }// end function

    }
}
